package cn.tedu.micro.demo.device.dao.repository.impl;

import cn.tedu.micro.demo.device.dao.mapper.GunInfoMapper;
import cn.tedu.micro.demo.device.dao.repository.DeviceRepository;
import cn.tedu.micro.demo.device.po.GunInfoPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class DeviceRepositoryImpl implements DeviceRepository {
    //实现过程 还是使用持久层框架mybatis-plus从数据读取枪数据
    @Autowired
    private GunInfoMapper gunInfoMapper;
    @Override
    public GunInfoPO getGunById(Integer id) {
        return gunInfoMapper.selectById(id);
    }
}
